function IsModeRG()
	return --[[GLOBAL.inGamePlay and]] GetWorld() and GetWorld():HasTag("rg_world")
end

function RG_AddSimPostInit(fn)
	AddSimPostInit(function(...)
		return IsModeRG() and fn(...)
	end)
end

function RG_AddPrefabPostInitAny(fn)
	AddPrefabPostInitAny(function(...)
		return IsModeRG() and fn(...)
	end)
end

function RG_AddPrefabPostInit(name, fn)
	AddPrefabPostInit(name, function(...)
		return IsModeRG() and fn(...)
	end)
end

function RG_AddPlayerPostInit(fn)
	AddPlayerPostInit(function(...)
		return IsModeRG() and fn(...)
	end)
end

function RG_AddComponentPostInit(name, fn)
	AddComponentPostInit(name, function(...)
		return IsModeRG() and fn(...)
	end)
end

function RG_AddClassPostConstruct(path, fn)
	AddClassPostConstruct(path, function(...)
		return IsModeRG() and fn(...)
	end)
end